![]() |
ScreenRes |
||||
Header: | Quickdraw.h | Carbon status: | Supported | |
Determines the resolution of the main device.
void ScreenRes ( SInt16 *scrnHRes, SInt16 *scrnVRes );
On return, the number of horizontal pixels per inch displayed by the current device.
On return, the number of vertical pixels per inch displayed by the current device.
To determine the resolutions of all available graphics devices, examine their GDevice structures. The horizontal and vertical resolutions for a graphics device are stored in the hRes and vRes fields, respectively, of the PixMap structure for the device’s GDevice structure.
Currently, QuickDraw and the Printing Manager always assume a screen resolution of 72 dpi.
Do not use the actual screen resolution as a scaling factor when drawing into a printing graphics port. Instead, always use 72 dpi as the scaling factor. See the Printing Manager documentation for more information about drawing into a printing graphics port.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)